package com.huchao.www.job;

import org.quartz.*;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.util.Date;

/**
 * @Description:
 * @BelongsProject: background-management-v10
 * @BelongsPackage: com.huchao.www.scheduler
 * @Author: 亖思
 * @CreateTime: 2023/3/20 11:21
 * @Version: 1.0
 */

@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class SecondJob implements Job {

    /**
     * @param jobExecutionContext
     * @throws JobExecutionException
     */
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("我被成功触发啦（每5秒钟）:" + new Date());
    }
}
